/*
 * ChatRemind.java
 *
 * Created on 2007年4月14日, 下午5:46
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.ecomm.chat.pojo;


import com.ecomm.platcore.app.CommonGeneralModel;
import javax.persistence.*;

/**
 * @author pijunliang
 */
@Entity
@Table(name="CHAT_REMIND")
public class ChatRemind  extends CommonGeneralModel {
  
  /** Creates a new instance of ChatRemind */
  public ChatRemind() {
  }
  private com.ecomm.chat.pojo.ChatMessage chatMessage;
  private String acceptuserid;
  /**
   *该用户的该消息的状态
   *0 未查看
   *1 已查看
   *2 用户已删除  当为2的时候这条记录就没了
   */
  private String state = "0";

  @ManyToOne
  public com.ecomm.chat.pojo.ChatMessage getChatMessage() {
    return chatMessage;
  }

  public void setChatMessage(com.ecomm.chat.pojo.ChatMessage chatMessage) {
    this.chatMessage = chatMessage;
  }

  public String getAcceptuserid() {
    return acceptuserid;
  }

  public void setAcceptuserid(String acceptuserid) {
    this.acceptuserid = acceptuserid;
  }

  public String getState() {
    return state;
  }

  public void setState(String state) {
    this.state = state;
  }
}
